<!-- 个人中心 -->
<template>
	<view>
		<!-- <view style="margin-top: 20rpx;">
               <view style="display: flex;">
                   <view class="title">姓名</view>
                  <input placeholder="输入姓名" />
               </view>
                    <view class="br"></view>
           </view>
    -->
		<view class="cu-form-group">
			<view style="display: flex;">
				<view class="title">姓名</view>
			</view>
			<input placeholder="输入姓名" v-model="realname"></input>

		</view>

		<view class="cu-form-group">
			<view style="display: flex;">
				<view class="title">身份证号</view>
			</view>
			<input placeholder="输入身份证号" v-model="realnumber"></input>
		</view>
		<view class="br"></view>
		<view class="submit" @click="sbumit">确定</view>
	</view>
</template>

<script>
	import {
		mapMutations,
		mapActions,
		mapState,
		mapGetters
	} from "vuex";
	export default {
		data() {
			return {
				realname: uni.getStorageSync('userInfo').realname,
				realnumber: uni.getStorageSync('userInfo').realnumber,
			}
		},
		onLoad() {
			console.log(this)
		},
		methods: {
			sbumit() {
				let data = {
					realname:this.realname,
					realnumber:this.realnumber
				}
				this.$https('my.takeRealInfo',data).then(res=>{
					if(res.code == 1){
						this.$u.toast('修改成功')
					}
				})
			}

		}
	}
</script>
<style>
	page {
		height: 100%;
		background: #ffffff !important;
	}
</style>
<style lang="scss" scoped>
	* {
		box-sizing: border-box;
		margin: 0;
		padding: 0;

	}

	.personal-wrap {
		padding-bottom: 100rpx;
	}

	.br {
		border: 1px solid #F3F3F3;
		margin-left: 24rpx;
		margin-right: 24rpx;
	}

	.title {

		font-size: 32rpx;
		font-family: PingFang SC-Medium, PingFang SC;
		font-weight: 500;
		color: #333333;
		line-height: 63rpx;
	}

	.input-placeholder {
		color: #999999;
		font-size: 32rpx;
		text-align: right;
		line-height: 84rpx;
	}

	.cu-form-group input {
		text-align: right;
		padding-right: 0px;
		font-size: 32rpx;
	}

	.submit {
		width: 343px;
		height: 49px;
		background: linear-gradient(90deg, #FC5351 0%, #FF6E6D 100%);
		border-radius: 37px 37px 37px 37px;
		opacity: 1;
		margin: 108rpx auto;
		display: flex;
		justify-content: center;
		align-items: center;
		text-align: center;
		color: white;
	}
</style>
